import { createApp } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue';
import { createPinia } from "pinia"
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
import router from "@/router"
import Vue3ColorPicker from "vue3-colorpicker";
import mitt from 'mitt'
import SvgIcon from "@/components/SvgIcon/index.vue";
import "@/assets/icon/style.css";



// import i18n from './lang'
import "vue3-colorpicker/style.css";
import "./permisstion"
import 'ant-design-vue/dist/reset.css';
import "@/styles/global.scss"
import "virtual:svg-icons-register";





const app = createApp(App);
const pinia = createPinia();
app.component("svg-icon", SvgIcon);
app.config.globalProperties.Bus = mitt();
pinia.use(piniaPluginPersistedstate)
// app.use(i18n)
app.use(pinia)
app.use(Vue3ColorPicker)
app.use(Antd)
app.use(router)
app.mount('#app')
